package com.ds.lens.data.service.esservice;

import com.ds.lens.data.common.document.Metrics;
import com.ds.lens.data.service.repository.MetricsRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Service;


@Service
public class MetricsOperateService extends AbstractIndexOperateService<Metrics> {

    @Autowired
    private MetricsRepository metricsRepository;

    @Override
    protected Class<Metrics> getIndexClass() {
        return Metrics.class;
    }

    @Override
    protected ElasticsearchRepository<Metrics, String> getIndexRepository() {
        return metricsRepository;
    }
}
